home *** CD-ROM | disk | FTP | other *** search
- Path: magnus.acs.ohio-state.edu!news
- From: "Richard D. Snyder" <snyder.164@osu.edu>
- Newsgroups: comp.lang.c++
- Subject: Q: Prohibiting Multiple Program Instances in MFC (VC++4.0)
- Date: Wed, 10 Apr 1996 14:29:24 -0400
- Organization: The Ohio State University
- Message-ID: <316BFE04.130E@osu.edu>
- NNTP-Posting-Host: s-96-239.resnet.ohio-state.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win95; I)
-
- I am trying to figure out how to keep only a single instance of a
- program running at the same time.
-
- I'm using Microsoft Visual C++ 4.0 and MFC 4.0.
-
- My application class has not been significantly modified from what MFC
- AppWizard generated (I added a ParseCommandLine call, but that's about
- it). My main window is a CDialog derived object. I frequently change
- the window title to reflect the status of the program, so I can't simply
- use a FindWindow(NULL, "My Program") call.
-
- Thanks in advance for any help.
- --
- ==================================================
- = Richard Snyder = =
- = 1323 Jones Tower = =
- = 101 Curl Drive = Voice: (614)688-9096 =
- = Columbus, OH 43210 = Email: snyder.164@osu.edu =
- ==================================================
-